/**
 * created by dt 2025/5/8
 */

export class FVec3 {
    x: number = 0;
    y: number = 0;
    z: number = 0;

    static FromXYZ(x: number, y: number, z: number) {
        const v = new FVec3();
        v.x = x; v.y = y; v.z = z;
        return v;
    }
    clone(): FVec3 {
        return FVec3.FromXYZ(this.x, this.y, this.z);
    }

    set(x: number, y: number, z: number) {
        this.x = x; this.y = y; this.z = z;
    }
}